// <copyright file="RemoteData.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;
using YUIAspNet;

namespace YUIAspNetDemo.Charts
{
    public partial class RemoteData : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RemoteDataSource source = new RemoteDataSource();
            source.AddColumn("Season");
            source.AddColumn("Voters");

            source.DataUrl = new Uri("RemoteDataHandler.asmx", UriKind.RelativeOrAbsolute);

            this.pieChart.Source = this.pieChart1.Source = source;

            this.pieChart.CategoryField = this.pieChart1.CategoryField = "Season";
            this.pieChart.DataField = this.pieChart1.DataField = "Voters";
        }
    }
}
